package com.villaday.idf.model;

/**
 * Created by tudou on 2018/8/15.
 */

public class LoginEntity {


    /**
     * code : 200
     * status : success
     * msg : success
     * body : {"expired":31449600,"member":{"headerUrl":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJpbicpMGy73vPZMX9mqhick0BA12tVzGt0vjqYw6qDlNnLBwvYicpf43FYUbSKpa3MpCowgbD1CRgibA/132","level":"VIP_0","nickName":"宋山","type":"normal"},"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJlYjA1ZWE2ZiIsInN1YiI6IllNTjlKZDAzeGsiLCJtdCI6MCwiYXBwSWQiOiJ5NmkzZkxTREhyejhBaEphIiwiZXhwIjoxNTY1ODM2MTEwLCJpYXQiOjE1MzQyOTk4MTAsInZlcnNpb24iOjEwMDAwMn0.LvcFnDGBtFABSgKKIcyCQIrok6TE7dlDJMypqy7gxPpSQFe4b2wr2Gto1OUj_fVsbDpkbdqD0PJKBDapJ9DYgw"}
     */

    private String code;
    private String status;
    private String msg;
    private BodyEntity body;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BodyEntity getBody() {
        return body;
    }

    public void setBody(BodyEntity body) {
        this.body = body;
    }

    public static class BodyEntity {
        /**
         * token : string,登录成功后返回的登录凭证
         * expired : integer,凭证有效时长（秒），在失效前客户端需主动刷新凭证
         * member : {"nickName":"string,昵称","headerUrl":"string,头像","gender":"integer,性别，0:未知，1:男，2:女","number":"string,会员码","type":"integer,会员类型，0：普通用户，1：普通VIP，2：专业VIP","level":"integer,会员等级，默认：0","mobile":"string,手机号码。提交数据时，客户端仅需仅需简单校验长度，是否为空即可，具体的校验由服务端完成","expireTime":"string,VIP/SVIP过期时间","name":"string,用户真实姓名","zfb":"string,用户支付宝账号","inviteCode":"string,SVIP专属邀请码","defaultBrokenPercent":"string,SVIP默认配置佣金比例","inviteShare":{"title":"string,分享标题","desc":"string,分享描述","imageURL":"string,分享图片","linkURL":"string,分享链接"},"parent":{"id":"string,用户昵称","nickName":"string,昵称","headerUrl":"string,头像"}}
         * merchant : {"id":"string,商户ID","nickName":"string,昵称","headImageURL":"string,头像","showSupplier":"boolean,是否显示供应商菜单","pcUrl":"string,PC版地址"}
         */

        private String token;
        private String expired;
        private MemberBean member;
        private MerchantBean merchant;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getExpired() {
            return expired;
        }

        public void setExpired(String expired) {
            this.expired = expired;
        }

        public MemberBean getMember() {
            return member;
        }

        public void setMember(MemberBean member) {
            this.member = member;
        }

        public MerchantBean getMerchant() {
            return merchant;
        }

        public void setMerchant(MerchantBean merchant) {
            this.merchant = merchant;
        }

        public static class MemberBean {
            /**
             * nickName : string,昵称
             * headerUrl : string,头像
             * gender : integer,性别，0:未知，1:男，2:女
             * number : string,会员码
             * type : integer,会员类型，0：普通用户，1：普通VIP，2：专业VIP
             * level : integer,会员等级，默认：0
             * mobile : string,手机号码。提交数据时，客户端仅需仅需简单校验长度，是否为空即可，具体的校验由服务端完成
             * expireTime : string,VIP/SVIP过期时间
             * name : string,用户真实姓名
             * zfb : string,用户支付宝账号
             * inviteCode : string,SVIP专属邀请码
             * defaultBrokenPercent : string,SVIP默认配置佣金比例
             * inviteShare : {"title":"string,分享标题","desc":"string,分享描述","imageURL":"string,分享图片","linkURL":"string,分享链接"}
             * parent : {"id":"string,用户昵称","nickName":"string,昵称","headerUrl":"string,头像"}
             */

            private String nickName;
            private String headerUrl;
            private String gender;
            private String number;
            private String type;
            private String level;
            private String mobile;
            private String expireTime;
            private String name;
            private String zfb;
            private String inviteCode;
            private String defaultBrokenPercent;
            private InviteShareBean inviteShare;
            private ParentBean parent;
            private String id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getHeaderUrl() {
                return headerUrl;
            }

            public void setHeaderUrl(String headerUrl) {
                this.headerUrl = headerUrl;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getExpireTime() {
                return expireTime;
            }

            public void setExpireTime(String expireTime) {
                this.expireTime = expireTime;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getZfb() {
                return zfb;
            }

            public void setZfb(String zfb) {
                this.zfb = zfb;
            }

            public String getInviteCode() {
                return inviteCode;
            }

            public void setInviteCode(String inviteCode) {
                this.inviteCode = inviteCode;
            }

            public String getDefaultBrokenPercent() {
                return defaultBrokenPercent;
            }

            public void setDefaultBrokenPercent(String defaultBrokenPercent) {
                this.defaultBrokenPercent = defaultBrokenPercent;
            }

            public InviteShareBean getInviteShare() {
                return inviteShare;
            }

            public void setInviteShare(InviteShareBean inviteShare) {
                this.inviteShare = inviteShare;
            }

            public ParentBean getParent() {
                return parent;
            }

            public void setParent(ParentBean parent) {
                this.parent = parent;
            }

            public static class InviteShareBean {
                /**
                 * title : string,分享标题
                 * desc : string,分享描述
                 * imageURL : string,分享图片
                 * linkURL : string,分享链接
                 */

                private String title;
                private String desc;
                private String imageURL;
                private String linkURL;

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getDesc() {
                    return desc;
                }

                public void setDesc(String desc) {
                    this.desc = desc;
                }

                public String getImageURL() {
                    return imageURL;
                }

                public void setImageURL(String imageURL) {
                    this.imageURL = imageURL;
                }

                public String getLinkURL() {
                    return linkURL;
                }

                public void setLinkURL(String linkURL) {
                    this.linkURL = linkURL;
                }
            }

            public static class ParentBean {
                /**
                 * id : string,用户昵称
                 * nickName : string,昵称
                 * headerUrl : string,头像
                 */

                private String id;
                private String nickName;
                private String headerUrl;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getNickName() {
                    return nickName;
                }

                public void setNickName(String nickName) {
                    this.nickName = nickName;
                }

                public String getHeaderUrl() {
                    return headerUrl;
                }

                public void setHeaderUrl(String headerUrl) {
                    this.headerUrl = headerUrl;
                }
            }
        }

        public static class MerchantBean {
            /**
             * id : string,商户ID
             * nickName : string,昵称
             * headImageURL : string,头像
             * showSupplier : boolean,是否显示供应商菜单
             * pcUrl : string,PC版地址
             */

            private String id;
            private String nickName;
            private String headImageURL;
            private String showSupplier;
            private String pcUrl;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getHeadImageURL() {
                return headImageURL;
            }

            public void setHeadImageURL(String headImageURL) {
                this.headImageURL = headImageURL;
            }

            public String getShowSupplier() {
                return showSupplier;
            }

            public void setShowSupplier(String showSupplier) {
                this.showSupplier = showSupplier;
            }

            public String getPcUrl() {
                return pcUrl;
            }

            public void setPcUrl(String pcUrl) {
                this.pcUrl = pcUrl;
            }
        }

        /**
         * token : string,登录成功后返回的登录凭证
         * expired : integer,凭证有效时长（秒），在失效前客户端需主动刷新凭证
         * member : {"nickName":"string,昵称","headerUrl":"string,头像","gender":"integer,性别，0:未知，1:男，2:女","number":"string,会员码","type":"integer,会员类型，0：普通用户，1：普通VIP，2：专业VIP","level":"integer,会员等级，默认：0","mobile":"string,手机号码"}
         */



    }
}
